package com.xsj.mapper;

import com.xsj.pojo.Merchant;
import com.xsj.pojo.UserAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdressMapper {
    Integer UPAdress(@Param("addressId") int addressId, @Param("longitude") double longitude,
                  @Param("latitude") double latitude,@Param("address") String address,
                  @Param("client")String client,@Param("clientPhone") String clientPhone
            ,@Param("clientSex") int clientSex);
    Integer InitAdress(@Param("userId") int userId, @Param("longitude") double longitude,
                  @Param("latitude") double latitude,@Param("address") String address,
                    @Param("client")String client,@Param("clientPhone") String clientPhone
            ,@Param("clientSex") int clientSex);
    Integer DeAderss(@Param("addressId") int addressId);
    List<UserAddress> SeAdress(@Param("userId") int userId);
}
